package com.itestor.iptv.modules.ne.domain;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.itestor.iptv.modules.common.domain.RegionManage;

/** 
 * @author Mr.li
 */
@Entity
@Table(name = "ROBOTMANAGE")
public class RobotManage {

    private Integer idRobot;
    
    private String name;
    
    private Integer channel;
    
    
    /**
     * 区域
     */
    private RegionManage  regionManage;
    
    
    @Id 
    @GeneratedValue
    @Column(name = "IDROBOT")
    public Integer getIdRobot() {
        return idRobot;
    }

    public void setIdRobot(Integer pIdRobot) {
        idRobot = pIdRobot;
    }

    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    public void setName(String pName) {
        name = pName;
    }

    @Column(name = "CHANNEL")
    public Integer getChannel() {
        return channel;
    }

    public void setChannel(Integer pChannel) {
        channel = pChannel;
    }
    
    @ManyToOne
    @JoinColumn(name="IDREGION",referencedColumnName="IDREGION")
    public RegionManage getRegionManage() {
        return regionManage;
    }

    public void setRegionManage(RegionManage pRegionManage) {
        regionManage = pRegionManage;
    }
   
}
